package com.ruoyi.system.wnjk.service.impl;


import com.ruoyi.system.wnjk.domain.po.WnjkHospital;
import com.ruoyi.system.wnjk.mapper.WnjkHospitalMapper;
import com.ruoyi.system.wnjk.service.IWnjkHospitalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 医院信息Service业务层处理
 *
 * @author ruoyi
 * @date 2025-03-06
 */
@Service
public class WnjkHospitalServiceImpl implements IWnjkHospitalService
{
    @Autowired
    private WnjkHospitalMapper wnjkHospitalMapper;

    /**
     * 查询医院信息
     *
     * @param id 医院信息主键
     * @return 医院信息
     */
    @Override
    public WnjkHospital selectWnjkHospitalById(Long id)
    {
        return wnjkHospitalMapper.selectWnjkHospitalById(id);
    }

    /**
     * 查询医院信息列表
     *
     * @param wnjkHospital 医院信息
     * @return 医院信息
     */
    @Override
    public List<WnjkHospital> selectWnjkHospitalList(WnjkHospital wnjkHospital)
    {
        return wnjkHospitalMapper.selectWnjkHospitalList(wnjkHospital);
    }

    /**
     * 新增医院信息
     *
     * @param wnjkHospital 医院信息
     * @return 结果
     */
    @Override
    public int insertWnjkHospital(WnjkHospital wnjkHospital)
    {
        return wnjkHospitalMapper.insertWnjkHospital(wnjkHospital);
    }

    /**
     * 修改医院信息
     *
     * @param wnjkHospital 医院信息
     * @return 结果
     */
    @Override
    public int updateWnjkHospital(WnjkHospital wnjkHospital)
    {
        return wnjkHospitalMapper.updateWnjkHospital(wnjkHospital);
    }

    /**
     * 批量删除医院信息
     *
     * @param ids 需要删除的医院信息主键
     * @return 结果
     */
    @Override
    public int deleteWnjkHospitalByIds(Long[] ids)
    {
        return wnjkHospitalMapper.deleteWnjkHospitalByIds(ids);
    }

    /**
     * 删除医院信息信息
     *
     * @param id 医院信息主键
     * @return 结果
     */
    @Override
    public int deleteWnjkHospitalById(Long id)
    {
        return wnjkHospitalMapper.deleteWnjkHospitalById(id);
    }


}
